package org.example.service;

import org.example.model.table.User;
import org.example.model.vo.UserVo;
import org.example.util.Result;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface UserService {
    Result login(UserVo userVo);

    Result add(String token, UserVo userVo);

    Result getPageUser(Integer page, Integer size, UserVo userVo);
    Result getUserById(Long id);
    Result getUserListByIds(List<Long> ids);
    Result edit(String token, UserVo userVo);
    Result deleteUserById(Long id);
    Result switchStatusById(Long id, Long status);

    Result getUsersByRole(String role);

    Result getUserCount();
}
